package databaseVersionControl.domain.ddl;

import databaseVersionControl.domain.dialect.Dialect;
import databaseVersionControl.domain.script.ExecutableScript;
import databaseVersionControl.infra.script.validation.PreInstallCondition;

public class HardCodedStatement implements ExecutableScript  {
	
	private String statement;
	
	public HardCodedStatement(String statement) {
		this.statement = statement;
	}

	@Override
	public String sqlInDialect(Dialect dialect) {
		return statement;
	}

	@Override
	public String sqlIdentifier() {
		return statement;
	}

	@Override
	public String getName() {
		return statement;
	}

	@Override
	public PreInstallCondition<?> getPreInstallCondition() {
		return null;
	}

	@Override
	public boolean hasPreInstallCondition() {
		return false;
	}

}